import { t } from '@/locales/i18n';
import { NodeInputKeyEnum, FlowNodeTypeEnum } from '@/types/workflow/constant';
import { StoreNodeItemType } from '@/types/workflow/node';

// 系统配置的默认模板
export const systemConfigTemplate: StoreNodeItemType = {
  nodeId: 'systemConfig',
  flowNodeType: FlowNodeTypeEnum.systemConfig,
  version: '1.0',
  name: t('系统配置'),
  position: {
    x: 100,
    y: 100,
  },
  data: {
    inputs: [
      {
        key: NodeInputKeyEnum.welcomeText,
        value: '',
        type: 'text',
        label: t('欢迎语'),
        description: t('用户进入对话时展示的欢迎语'),
      },
      {
        key: NodeInputKeyEnum.questionGuide,
        value: '',
        type: 'text',
        label: t('问题指引'),
        description: t('指引用户输入特定格式的问题'),
      },
      {
        key: NodeInputKeyEnum.chatInputGuide,
        value: '',
        type: 'text',
        label: t('输入框引导语'),
        description: t('输入框中显示的引导文字'),
      },
      {
        key: NodeInputKeyEnum.tts,
        value: false,
        type: 'boolean',
        label: t('语音合成'),
        description: t('将AI回复转换为语音'),
      },
      {
        key: NodeInputKeyEnum.whisper,
        value: false,
        type: 'boolean',
        label: t('语音识别'),
        description: t('支持用户语音输入'),
      },
    ],
    outputs: [],
  },
};
